<form name="frm" action="<?php echo $this->site['base_url']?>admin_customer/save" method="post">
<table cellspacing="0" cellpadding="0" class="title">
  <tr>
    <td><?php echo Kohana::lang('customer_lang.tt_page')?></td>
    <td align="right">
    <button type="button" name="btn_back" class="button back" onclick="javascript:location.href='<?php echo $this->site['base_url']?>admin_customer/search'">
    <span><?php echo Kohana::lang('admin_lang.btn_back')?></span>
    </button>
    &nbsp;
    <button type="reset" name="btn_reset" class="button reset"/>
    <span><?php echo Kohana::lang('admin_lang.btn_reset')?></span>
    </button>
    &nbsp;
    <button type="submit" name="btn_submit" class="button save" />
    <span><?php echo Kohana::lang('admin_lang.btn_save')?></span>
    </button>
    </td>
  </tr>
</table>
<table class="form" cellspacing="0" cellpadding="0">
  <tr>
  <td>
  <ul id="customer_tab" class="shadetabs">
    <li><a href="#" rel="general_tab" class="selected"><?php echo Kohana::lang('customer_lang.lbl_general')?></a></li>
    <li><a href="#" rel="promotion_tab"><?php echo Kohana::lang('customer_lang.lbl_promotion')?></a></li>
  </ul>
  <div style="border:1px solid #999; margin-bottom:1em; padding:10px">
  <div id="general_tab" class="tabcontent">
    <?php require('frm_general.php')?>
  </div>
  <div id="promotion_tab" class="tabcontent">
    <?php require('frm_promotion.php')?>
  </div> 
  </div>
  </td>
  </tr>  
</table>
</form>
<link rel="stylesheet" type="text/css" href="<?php echo $this->site['base_url']?>themes/plugins/tabcontent/tabcontent.css">
<script type="text/javascript" src="<?php echo $this->site['base_url']?>themes/plugins/tabcontent/tabcontent.js"></script>
<script type="text/javascript">
var countries=new ddtabcontent("customer_tab")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>